﻿using System;
using System.Collections.Generic;
using YJKRevitFamilyDataBase;

namespace YJKExcelFormTool
{
	public class ImportMaterialTableInfos
	{
		public SubjectType ImportSubjectType
		{
			get
			{
				return this.m_SubjectType;
			}
		}

		public List<ImportTableRow> TableData
		{
			get
			{
				return this.m_TableData;
			}
		}

		public ImportMaterialTableInfos(SubjectType subject)
		{
			this.m_SubjectType = subject;
		}

		public bool AddTableRecord(ImportTableRow row)
		{
			if (this.m_TableData == null)
			{
				this.m_TableData = new List<ImportTableRow>();
			}
			this.m_TableData.Add(row);
			return true;
		}

		private SubjectType m_SubjectType;

		private List<ImportTableRow> m_TableData;
	}
}
